package com.ice.body.log.dao;

import com.ice.body.log.model.LogAir;
import com.ice.base.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

/**
 * Created with GuoYanBin.
 * Description:空气质量记录 mapper
 * Date: 2022-11-11
 * Time: 03:33
 */
@Mapper
public interface LogAirMapper extends BaseDao<LogAir>{

    @Select("select * from t_log_air order by createTime desc limit 1")
    LogAir selectLast();

    @Select("select * from t_log_air order by createTime desc limit 10")
    ArrayList<LogAir> selectLimit();
}